import request from './request.js'

export function getEmployeeList(data) {
  return request({
    url: '/employee/get',
    method: 'post',
    data: data,
  })
}

export function addEmployee(data) {
  return request({
    url: '/employee/Add',
    method: 'post',
    data: data,
  })
}
export function updateEmployee(data) {
  return request({
    url: '/employee/update',
    method: 'post',
    data: data,
  })
}
export function deleteEmployee(id) {
  return request({
    url: `/employee/Delete?Id=${id}`,
    method: 'post',
  });
}